package com.smasher.widget.selection;


import androidx.annotation.StringRes;

import com.bigkoo.pickerview.listener.OnOptionsSelectListener;

public class OptionBuilder {

    private String mTitle;
    private int mConfirmText;
    private int mCancelText;

    private OnOptionsSelectListener mOnOptionsSelectListener;

    public OptionBuilder() {

    }

    public String getTitle() {
        return mTitle;
    }

    public int getConfirmText() {
        return mConfirmText;
    }

    public int getCancelText() {
        return mCancelText;
    }

    public OnOptionsSelectListener getOnOptionsSelectListener() {
        return mOnOptionsSelectListener;
    }

    public OptionBuilder setOnSelectListener(OnOptionsSelectListener optionsSelectListener) {
        mOnOptionsSelectListener = optionsSelectListener;
        return this;
    }

    public OptionBuilder setTitle(String title) {
        mTitle = title;
        return this;
    }

    public OptionBuilder setConfirmText(@StringRes int confirmText) {
        this.mConfirmText = confirmText;
        return this;
    }

    public OptionBuilder setCancelText(@StringRes int cancelText) {
        this.mCancelText = cancelText;
        return this;
    }

    public OptionSelection build() {
        return new OptionSelection(this);
    }
}
